<extend name="Public:admin" />
<block name="content">
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
  <legend>{$langs['CONTROLLER']}{$langs['ACTION']}</legend>
</fieldset>
<empty name="info.id">
<form class="layui-form" action="{:U('add',array('id'=>$_GET['id'],'pid'=>$_GET['pid']))}" method="post">
<else />
<form class="layui-form" action="{:U('edit',array('id'=>$_GET['id'],'pid'=>$_GET['pid']))}" method="post">
</empty>
	<div class="layui-form-item">
		<label class="layui-form-label">导航名称</label>
		<div class="layui-input-inline">
			<input type="text" name="name" lay-verify="required" autocomplete="off" class="layui-input" value="{$info['name']}">
		</div>
	</div>
	
	<div class="layui-form-item">
		<label class="layui-form-label">排序</label>
		<div class="layui-input-inline">
			<input type="text" name="sort" lay-verify="text" autocomplete="off" class="layui-input" value="{$info['sort']}">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">跳转url</label>
		<div class="layui-input-inline">
			<input type="text" name="url" lay-verify="text" autocomplete="off" class="layui-input" value="{$info['url']}">
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-input-block">
			<button class="layui-btn" lay-submit lay-filter="*">立即提交</button>
			<a class="layui-btn" href="javascript:history.go(-1);">返回</a>
		</div>
	</div>
</form>
</block>